﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" CodeBehind="QuanNianQSKXXCX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS._7.ChaXunGL.QuanNianQSKXXCX" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>全年取水口信息查询</title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size: 12px;
        }

        #img table tr td div {
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });



        function rowClick() {
            if (gvGrid1.GetFocusedRowIndex() != -1) {
                //alert(gvGrid1.GetRowKey(gvGrid1.GetFocusedRowIndex()));
                if (gvGrid1.GetFocusedRowIndex() != -1) {
                    hdCollection.Set("ID", gvGrid1.GetRowKey(gvGrid1.GetFocusedRowIndex()));
                    //loadpanel1.Show();
                    ASPxCallback1.PerformCallback("setinfo");
                }
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
                txtYongHuH2.SetText(arr[2]);
                txtYongHuM2.SetText(arr[3]);
                txtHuanNeiHW.SetText(arr[4]);

                txJingBianH.SetText(arr[5]);
                txtDiZhi.SetText(arr[6]);
                txtXingZhengQ.SetText(arr[7]);

                txtJingLeiX.SetText(arr[8]);
                txtQuShuiDD.SetText(arr[9]);
                txtLiuYu.SetText(arr[10]);

                txtQSFS.SetText(arr[11]);
                txtShuiYuan.SetText(arr[12]);
                txtTuiShuiWZ.SetText(arr[13]);
                txtQSKPH.SetText(arr[14]);


                txtQSKM.SetText(arr[15]);
                txtQuShuiYT.SetText(arr[16]);


                txtYeWuY.SetText(arr[17]);
                txtGuanLiBM.SetText(arr[18]);
                txtShuiZiYFQ.SetText(arr[19]);

                txtHangYeFL.SetText(arr[20]);
                txtShuiLiFP.SetText(arr[21]);
                txtShuiBiaoSL.SetText(arr[22]);
                //txtBenYueSL.SetText(arr[23]);


                memoBeiZhu.SetText(arr[24]);
                //txtBenYueSL.SetText(arr[25]);
            }
        }
        function ChangeChild() {
            if (gvGridTab2.GetFocusedRowIndex() != -1) {
                hdCollection.Set("gvGrid2Tab2YHH", gvGridTab2.GetRowKey(gvGridTab2.GetFocusedRowIndex()));
                //alert(gvGridTab2.GetRowKey(gvGridTab2.GetFocusedRowIndex()));
                //loadpanel1.Show();
                gvGrid2Tab2.PerformCallback();
            }
        }

        function XSorYC() {
            $("#divInfo").toggle();
            if ($("#divInfo").css('display') == 'none') {
                AdjustSize(150, gvGrid1);
            }
            else {
                AdjustSize(450, gvGrid1);
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            全年取水口信息查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>

        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>

                    <div style="width: 99%;">
                        <table>
                            <tr>
                                <td align="right" style="min-width: 70px">水量年：</td>
                                <td style="width: 90px;">
                                    <asp:Panel runat="server" ID="Panel7">
                                        <dx:ASPxComboBox runat="server" ID="cmbYear" Width="90%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>

                                <td align="right" style="min-width: 70px">水量月：</td>
                                <td style="width: 90px;">
                                    <asp:Panel runat="server" ID="Panel8">
                                        <dx:ASPxComboBox runat="server" ID="cmbMonth" Width="90%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>

                                </td>
                                <td style="width: 80px" align="right"><span style="font-size: 12px;">环内环外：</span></td>
                                <td style="width: 120px;">
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbHuanNeiHW" Width="90%" AutoPostBack="false">
                                            <Items>
                                                <dx:ListEditItem Text="" Value="" />
                                                <dx:ListEditItem Text="外环线内" Value="1" />
                                                <dx:ListEditItem Text="外环线外" Value="2" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width: 80px;" align="right"><span style="font-size: 12px;">行政区：</span></td>
                                <td style="width: 150px">
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbXingZhengQ" Width="80%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                 <td style="width: 80px;">业务员：</td>
                                <td style="width: 150px">
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbYeWuY" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td> 
                                <td>
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                    </dx:ASPxButton>
                                </td>
                               <%-- <td>
                                    <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue" Width="120"></dx:ASPxLabel>
                                </td>--%>
                            </tr>
                        </table>
                    </div>


                    <div style="border: 1px solid #d0e4fe; width: 99%;">
                        <div style="width: 25%; float: left">
                            <fieldset style="border: 1px solid #d0e4fe">
                                <legend>查询条件</legend>
                                <table style="height: 270px; width: 98%;">
                                    <tr>
                                        <td style="width: 100px" align="right">用户号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">用户名：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">用户地址：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtYongHuDZ" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">取水口号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtJingBianH" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">许可证号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtXuKeZH" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">取水地点：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtQuShuiDZ" Width="100%">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">取水用途：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbQuShuiYT" ClientInstanceName="cmbQuShuiYT" runat="server" ValueType="System.String" Width="100%">
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">行业分类：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbHangYeLX" ClientInstanceName="cmbHangYeLX" runat="server" ValueType="System.String" Width="100%">
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">主管部门：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cbmGuanLiBM" ClientInstanceName="cbmGuanLiBM" runat="server" Width="100%">
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">流域：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbLiuYu" runat="server" ValueType="System.String" Width="100%">
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right" style="width: 100px">水资源分区：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbShuiZiY" runat="server" ValueType="System.String" Width="100%">
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">水利分片：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbShuiLiFP" runat="server" ValueType="System.String" Width="100%">
                                                <Items>
                                                </Items>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>

                                </table>
                            </fieldset>

                        </div>
                        <div style="width: 74%; float: left; border: 1px solid #d0e4fe">
                            <dx:ASPxPageControl ID="ASPxPageControl1" ClientInstanceName="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" AutoPostBack="false">
                                <TabPages>
                                    <dx:TabPage Text="取水口信息">
                                        <ContentCollection>
                                            <dx:ContentControl>
                                                <div>

                                                    <div>

                                                        <div style="border: 1px solid #d0e4fe; width: 100%;">
                                                            <div id="img">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                            <div>
                                                                <dx:ASPxGridView ID="gvGrid1" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGrid1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                                    ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                                    <Columns>
                                                                        <dx:GridViewDataTextColumn FieldName="取水口号" Caption="取水口号" Width="60">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="用户号" Caption="用户号" Width="60">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="用户名" Caption="用户名" Width="200">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="用户地址" Caption="用户地址" Width="200">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水地点" Caption="取水地点" Width="200">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="表数" Caption="水表数量" Width="75">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="行政区名" Caption="行政区名" Width="60">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="流域" Caption="流域" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="水资源分区" Caption="水资源分区" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="水利分片" Caption="水利分片" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="环内环外" Caption="环内环外" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水用途" Caption="取水用途" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="行业分类" Caption="行业分类" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="业务员号" Caption="业务员号" Width="60">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="业务员名" Caption="业务员名" Width="60">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水类型" Caption="取水类型" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水水源" Caption="取水水源" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="备注" Caption="备注" Width="200">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水口名" Caption="取水口名" Width="">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="增井日期" Caption="增取水口日期" Width="85">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="修改日期" Caption="修改日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="取水口牌号" Caption="取水口牌号" Width="85">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="退水位置" Caption="退水位置" Width="85">
                                                                        </dx:GridViewDataTextColumn>
                                                                    </Columns>
                                                                    <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="300 " />
                                                                    <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                                    <Settings ShowFooter="True" />
                                                                    <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                                    <SettingsBehavior ProcessFocusedRowChangedOnServer="False" />
                                                                    <ClientSideEvents Init="function(s,e){AdjustSize(350,gvGrid1);}" FocusedRowChanged="function(s,e){rowClick();}" />
                                                                </dx:ASPxGridView>
                                                            </div>
                                                            <div>
                                                                <input type="button" id="yc" value="隐藏或显示详情" name="btnTest" onclick="XSorYC()" />
                                                            </div>
                                                           
                                                            <div id="divInfo">
                                                                <table style="text-align: right; width: 100%;">
                                                                    <tr>
                                                                        <td style="width: 10%;"><span style="font-size: 12px;">用户号：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH2" ClientEnabled="false" Width="80%" ClientInstanceName="txtYongHuH2"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td style="width: 10%;"><span style="font-size: 12px;">用户名：</span></td>
                                                                        <td colspan="3">
                                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuM2" ClientEnabled="false" Width="100%" ClientInstanceName="txtYongHuM2"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td style="width: 10%;"><span style="font-size: 12px;">环内环外：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtHuanNeiHW" ClientEnabled="false" Width="100%" ClientInstanceName="txtHuanNeiHW"></dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>

                                                                        <td><span style="font-size: 12px;">取水口号：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txJingBianH" ClientEnabled="false" Width="80%" ClientInstanceName="txJingBianH"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">地址：</span></td>
                                                                        <td colspan="3">
                                                                            <dx:ASPxTextBox runat="server" ID="txtDiZhi" ClientEnabled="false" Width="100%" ClientInstanceName="txtDiZhi"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">行政区：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtXingZhengQ" ClientEnabled="false" Width="100%" ClientInstanceName="txtXingZhengQ"></dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><span style="font-size: 12px;">取水类型：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtJingLeiX" ClientEnabled="false" Width="80%" ClientInstanceName="txtJingLeiX"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">取水地点：</span></td>
                                                                        <td colspan="3">
                                                                            <dx:ASPxTextBox runat="server" ID="txtQuShuiDD" ClientEnabled="false" Width="80%" ClientInstanceName="txtQuShuiDD"></dx:ASPxTextBox>
                                                                        </td>

                                                                        <td style="width: 10%;"><span style="font-size: 12px;">流域：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtLiuYu" ClientEnabled="false" Width="100%" ClientInstanceName="txtLiuYu"></dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><span style="font-size: 12px;">取水方式：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtQSFS" ClientEnabled="false" Width="100%" ClientInstanceName="txtQSFS"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">取水水源：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtShuiYuan" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiYuan"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">退水位置：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtTuiShuiWZ" ClientEnabled="false" Width="100%" ClientInstanceName="txtTuiShuiWZ"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">取水口牌号：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtQSKPH" ClientEnabled="false" Width="100%" ClientInstanceName="txtQSKPH"></dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><span style="font-size: 12px;">取水口名：</span></td>
                                                                        <td colspan="5">
                                                                            <dx:ASPxTextBox runat="server" ID="txtQSKM" ClientEnabled="false" Width="100%" ClientInstanceName="txtQSKM"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">取水用途：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtQuShuiYT" ClientEnabled="false" Width="100%" ClientInstanceName="txtQuShuiYT"></dx:ASPxTextBox>
                                                                        </td>

                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 10%;"><span style="font-size: 12px;">业务员：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtYeWuY" ClientEnabled="false" Width="100%" ClientInstanceName="txtYeWuY"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">主管部门：</span></td>
                                                                        <td colspan="3">
                                                                            <dx:ASPxTextBox runat="server" ID="txtGuanLiBM" ClientEnabled="false" Width="100%" ClientInstanceName="txtGuanLiBM"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">水资源分区：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtShuiZiYFQ" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiZiYFQ"></dx:ASPxTextBox>
                                                                        </td>

                                                                    </tr>
                                                                    <tr>
                                                                        <td><span style="font-size: 12px;">行业分类：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtHangYeFL" ClientEnabled="false" Width="100%" ClientInstanceName="txtHangYeFL"></dx:ASPxTextBox>
                                                                        </td>

                                                                        <td><span style="font-size: 12px;">水利分片：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtShuiLiFP" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiLiFP"></dx:ASPxTextBox>
                                                                        </td>
                                                                        <td><span style="font-size: 12px;">水表数：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtShuiBiaoSL" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiBiaoSL"></dx:ASPxTextBox>
                                                                        </td>

                                                                      <%--  <td><span style="font-size: 12px;">本月水量：</span></td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtBenYueSL" ClientEnabled="false" Width="100%" ClientInstanceName="txtBenYueSL"></dx:ASPxTextBox>
                                                                        </td>--%>
                                                                    </tr>
                                                                    <tr>
                                                                    </tr>
                                                                    <tr>


                                                                        <td rowspan="3"><span style="font-size: 12px;">备注：</span></td>
                                                                        <td rowspan="3" colspan="7">
                                                                            <dx:ASPxMemo runat="server" ID="memoBeiZhu" ClientEnabled="false" Width="100%" ClientInstanceName="memoBeiZhu"></dx:ASPxMemo>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                            </dx:ContentControl>
                                        </ContentCollection>
                                    </dx:TabPage>
                                    <dx:TabPage Text="取水口全年用水情况">
                                        <ContentCollection>
                                            <dx:ContentControl>
                                                <div>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxLabel ID="zjltab2" Text="共0条" runat="server" ForeColor="Blue" Width="120"></dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <dx:ASPxGridView ID="gvGridTab2" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGridTab2" runat="server" KeyFieldName="S_JINGBH"
                                                        ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="65">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="150">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_JINGBH" Caption="取水口号" Width="70">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="150">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_QUSHUIDZ" Caption="取水地点" Width="180">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="QSL" Caption="取水量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZSL" Caption="开账水量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="FDL" Caption="发电量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZDL" Caption="开账电量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZJE" Caption="开账金额" Width="90" PropertiesTextEdit-DisplayFormatString="0.00">
                                                            </dx:GridViewDataTextColumn>
                                                    
                                                        </Columns>
                                                        <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                        <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                        <Settings ShowFooter="True" />
                                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                        <%--<ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}" />--%>
                                                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                        <ClientSideEvents Init="function(s,e){AdjustSize(350,gvGridTab2);}" FocusedRowChanged="function(s,e){ChangeChild();}" />
                                                    </dx:ASPxGridView>
                                                </div>

                                                <dx:ASPxGridView ID="gvGrid2Tab2" SettingsBehavior-AllowSort="false" OnCustomCallback="gvGrid2Tab2_CustomCallback" KeyFieldName="I_M2" SettingsBehavior-ProcessSelectionChangedOnServer="true" ClientInstanceName="gvGrid2Tab2" runat="server" Width="100%">
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="I_M2" Caption="月份" Width="11%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="I_QSL" Caption="取水量" Width="">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="I_KZSL" Caption="开账水量" Width="">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="I_DL" Caption="发电量" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="N_KZDL" Caption="开账电量" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="N_KZJE" Caption="开账金额" Width="60" PropertiesTextEdit-DisplayFormatString="0.00">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>

                                                </dx:ASPxGridView>
                                            </dx:ContentControl>
                                        </ContentCollection>
                                    </dx:TabPage>
                                    <dx:TabPage Text="取水口月用水情况">
                                        <ContentCollection>
                                            <dx:ContentControl>
                                                 <table>
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxLabel ID="zjltab3" Text="共0条" runat="server" ForeColor="Blue" Width="120"></dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                    </table> 
                                                <dx:ASPxGridView ID="gvGridTab3" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGridTab3" runat="server" AutoGenerateColumns="true" KeyFieldName="S_JINGBH"
                                                    Settings-ShowVerticalScrollBar="true" Width="100%">
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="65">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="150">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_JINGBH" Caption="取水口号" Width="70">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="150">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="S_QUSHUIDZ" Caption="取水地点" Width="180">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="QSL" Caption="取水量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZSL" Caption="开账水量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="FDL" Caption="发电量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZDL" Caption="开账电量" Width="90">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="KZJE" Caption="开账金额" Width="90" PropertiesTextEdit-DisplayFormatString="0.00">
                                                            </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                    <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                    <Settings ShowFooter="True" />
                                                    <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                    <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                    <ClientSideEvents Init="function(s,e){AdjustSize(150,gvGridTab3);}" />
                                                </dx:ASPxGridView>
                                            </dx:ContentControl>
                                        </ContentCollection>
                                    </dx:TabPage>
                                    <dx:TabPage Text="取水口月用水汇总">
                                        <ContentCollection>
                                            <dx:ContentControl>
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td style="width: 100px" align="right">汇总类型：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxComboBox runat="server" ID="cmbHuiZongLX">
                                                                <Items>
                                                                    <dx:ListEditItem Text="按行政区" Value="0" Selected="true" />
                                                                    <dx:ListEditItem Text="按取水用途" Value="1" />
                                                                    <dx:ListEditItem Text="按行业类别" Value="2" />
                                                                    <dx:ListEditItem Text="按主管部门" Value="3" />
                                                                    <dx:ListEditItem Text="按环线内外" Value="4" />

                                                                    <dx:ListEditItem Text="按流域" Value="5" />
                                                                    <dx:ListEditItem Text="按水资源分区" Value="6" />
                                                                    <dx:ListEditItem Text="按水利分片" Value="7" />

                                                                </Items>
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxLabel ID="zjltab4" Text="共0条" runat="server" ForeColor="Blue" Width="120"></dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <dx:ASPxGridView ID="gvGridTab4" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGridTab4" runat="server" AutoGenerateColumns="true" KeyFieldName="开账金额"
                                                    ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%">
                                                   <%-- <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="" Width="20%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="" Width="30%">
                                                        </dx:GridViewDataTextColumn>

                                                        <dx:GridViewDataTextColumn FieldName="" Caption="取水量" Width="10%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="开账水量" Width="10%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="发电量" Width="10%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="开账电量" Width="10%">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="开账金额" Width="10%">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>--%>
                                                    <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                    <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                    <Settings ShowFooter="True" />
                                                    <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                    <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                    <ClientSideEvents Init="function(s,e){AdjustSize(150,gvGridTab4);}" />
                                                </dx:ASPxGridView>
                                            </dx:ContentControl>
                                        </ContentCollection>
                                    </dx:TabPage>
                                </TabPages>
                            </dx:ASPxPageControl>
                        </div>
                    </div>

                </div>

            </ContentTemplate>
        </asp:UpdatePanel>
         <div style="display:none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>  
    </form>
</body>
</html>
